package com.axjy.t152ssm.web;

import com.axjy.t152ssm.dto.UserDto;
import com.axjy.t152ssm.service.UserService;
import com.axjy.t152ssm.vo.Pager;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * Created by asus on 2018/1/15.
 */
@RestController
@RequestMapping("/sys/user")
public class UserHandler {

    @Resource
    private UserService userService;

    @GetMapping("/search")
    public Pager search(Integer offset, Integer limit, UserDto dto){
       return userService.searchPager(offset,limit,dto);
    }



}
